package com.wenwu.dao;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.RelicsBasic;
import com.wenwu.common.bean.RelicsHumanityEnvironment;
import com.wenwu.common.bean.RelicsHumanityEnvironmentExample;
import com.wenwu.common.page.PaginationVO;

public interface RelicsHumanityEnvironmentMapper extends Dao {
	int countByExample(RelicsHumanityEnvironmentExample example);

	int deleteByExample(RelicsHumanityEnvironmentExample example);

	int deleteByPrimaryKey(Integer humanityId);

	int insert(RelicsHumanityEnvironment record);

	int insertSelective(RelicsHumanityEnvironment record);

	List<RelicsHumanityEnvironment> selectByExample(
			RelicsHumanityEnvironmentExample example);

	RelicsHumanityEnvironment selectByPrimaryKey(Integer humanityId);

	int updateByExampleSelective(
			@Param("record") RelicsHumanityEnvironment record,
			@Param("example") RelicsHumanityEnvironmentExample example);

	int updateByExample(@Param("record") RelicsHumanityEnvironment record,
			@Param("example") RelicsHumanityEnvironmentExample example);

	int updateByPrimaryKeySelective(RelicsHumanityEnvironment record);

	int updateByPrimaryKey(RelicsHumanityEnvironment record);

	RelicsHumanityEnvironment selectObjByKey(@Param("basicId") Integer basicId)
			throws SQLException;

	int selectTotalRecord(@Param("humanity") RelicsHumanityEnvironment humanity)
			throws SQLException;

	List<RelicsBasic> selectList(@Param("humanity") RelicsHumanityEnvironment humanity, @Param("pageVo")PaginationVO pageVo)
			throws SQLException;
	
	int deleteByKey(List<?> keys) throws SQLException;
}